<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"/home/wwwroot/www.xgw0851.com/application/index/view/index/goods_list.html";i:1517319494;s:69:"/home/wwwroot/www.xgw0851.com/application/index/view/public/base.html";i:1524625919;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="__PUBLIC__/xsd/css/mui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/app.css?v1111" />

</head>
<!--/head-->
<body>


	<!--/header-->

<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/checkout.css" />
<style>
.addresscard-del {
    -ms-flex-preferred-size: 1.306667rem;
    flex-basis: 1.306667rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
</style>
<header class="mui-bar mui-bar-nav" style="z-index:7   ; position: relative;">
    <h1 class="mui-title"><?php  echo date("Y-m-d"); ?>商品价格列表</h1>
</header>
<div class="mui-content " style="padding-top:10px;">


    <ul class="mui-table-view" >

        <?php if(is_array($list) || $list instanceof \think\Collection): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>

              <li class="mui-table-view-cell">
                <div style="text-align:center;font-size:14px;">商品名称：<?php echo $item['good_name']; ?></div>

                <table border="1" style="    width: 100%;text-align: center;">
                    <tr>
                      <th>规格</th>
                      <th>库存</th>
                      <th>成本</th>
                      <th>建议售价(不包邮)</th>
                    </tr>
                    <?php if(is_array($item['goodsrule']) || $item['goodsrule'] instanceof \think\Collection): $i = 0; $__LIST__ = $item['goodsrule'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <tr>
                      <td><?php echo $vo[rule_name]; ?></td>
                      <td><?php echo $vo[stock]; ?></td>
                      <td><?php echo $vo[cost_price]; ?>元</td>
                      <td><?php echo $vo[rule_price]; ?>元</td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                  </table>

              </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>

</div>



<!--/#footer-->

<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/xsd/js/mui.min.js"></script>
<script src="__PUBLIC__/xsd/js/flexible.js"></script>
<script src="__PUBLIC__/xsd/js/template.js"></script>

  <script type="text/javascript">
    $(function(){



    })
  </script>

<?php if(!(empty(config('shop_hours')) || (config('shop_hours') instanceof \think\Collection && config('shop_hours')->isEmpty()))): ?>
<script>
  var time_range = function (beginTime, endTime) {
    var strb = beginTime.split (":");
    if (strb.length != 2) {
      return false;
    }

    var stre = endTime.split (":");
    if (stre.length != 2) {
      return false;
    }

    var b = new Date ();
    var e = new Date ();
    var n = new Date ();

    b.setHours (strb[0]);
    b.setMinutes (strb[1]);
    e.setHours (stre[0]);
    e.setMinutes (stre[1]);

    if (n.getTime () - b.getTime () > 0 && n.getTime () - e.getTime () < 0) {
      return true;
    } else {

      mui.alert("<?php echo config('shop_hours_message'); ?>", '公告');
      $('.mui-popup-buttons').html(' ')
      $('.mui-popup-inner').css('border-radius', '13px')
      return false;
    }
  }

  var shop_hours = "<?php echo config('shop_hours'); ?>";
  var hours_arr = shop_hours.split('-');
  time_range (hours_arr[0], hours_arr[1]);

</script>
<?php endif; if(config('is_rest') == '1'): ?>
<script>
mui.alert("<?php echo config('rest_message'); ?>", '公告');
$('.mui-popup-buttons').html(' ')
$('.mui-popup-inner').css('border-radius', '13px')
</script>
<?php endif; if(empty(\think\Cookie::get('positioninit')) || (\think\Cookie::get('positioninit') instanceof \think\Collection && \think\Cookie::get('positioninit')->isEmpty())): ?>
<script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
<script>
   var geolocation = new qq.maps.Geolocation("QQ6BZ-24HC6-ZAXSZ-MTZAU-5MU2J-HEFEH", "鲜果屋");
    geolocation.getIpLocation(showPosition, showErr)
    function showPosition(position) {
      $.getJSON("<?php echo url('index/cart/changecookie'); ?>", {name: 'positioninit', 'val': position.lat+','+position.lng}, function(json, textStatus) {});
    };
    function showErr() {
      console.log('定位失败');
    };
</script>
<?php endif; ?>

<script>
  $(function(){
    $('.subsc').click(function(){
      // $.get("<?php echo url('index/clearusersession'); ?>", function(data){
      //   if(data.code == 1){
      //     window.location.href = "http://mp.weixin.qq.com/s/-AzpDTU7eAD24-R5QUP0wg"
      //   }
      // })
      <?php if(empty($contact_qc) || ($contact_qc instanceof \think\Collection && $contact_qc->isEmpty())): ?>
            mui.alert('<img src="/public/xsd/xsdwx2.jpg" style="width:100%;">', '长按扫二维码');
          <?php else: ?>
            mui.alert('<img src="<?php echo $contact_qc; ?>" style="width:100%;">', '长按扫二维码');
      <?php endif; ?>
    })
  })
</script>
</body>
</html>
